[LockManager] Added ScopedLock::release function.