Protect access to the m_waiters map in Libevent2ManualEvent.onThreadShutdown.