Swaps the managed mutex and token with another lock.
Declared in <folly/SharedMutex.h>
<folly/SharedMutex.h>
void swap(shared_lock& other) noexcept;