[LockManager] Moved ScopedLock to its own file.