Added blocking mode to lock to allow the client to wait for a lock