Fixed libwebsocket_context race condition.