how to do distributed locking - Search