Constructs a lock and acquires the mutex in shared mode.
Declared in <folly/SharedMutex.h>
<folly/SharedMutex.h>
[[nodiscard]] explicit shared_lock(mutex_type& mutex);
The return value should not be discarded.