[Engine-XMPP] workaround race condition