Fix race condition in XmppServerConnection cleanup.

Change-Id: I4fcf3c92d6f2461615f0776dd2f1f94206e654d0