Remove RecursiveMutex and ScopedLock.