Fixed deadlock issue in case of synchronous xmpp requests