Switch TimedRWMutex implementation to use lock_guard where possible