Made OTRProtocolManager thread safe