Fix race condition in xmpp session cleanup.

Change-Id: I6280d7a0de4955128c45467312ec1b6f98ab2166