implementing correct lock exchange in modifying the cluster