Fix race condition in XmppServerConnection cleanup.

Change-Id: I8db376525349a0da7adf81ab4f7164b2e2634b66