implementing mutexes at cluster and registry level