The idea is pretty simple. For example, long time ago when Zookeeper didn't support multi key transaction I had to implement them and came to the same algorithm -
http://rystsov.info/2012/09/01/cas.html.
It would be great to know its name to simplify communication with the colleagues, do you know it?