The method takes already locked lock object as an argument. The caller must ensure that the lock object owns the underlying mutex. Replaced homegrown wsrep::unique_lock with type alias from std::unique_lock.