Fix race condition in XmppServerConnection cleanup.

Change-Id: I7850682f88dffef7447ef991943269d51440b89e