fix race condition while closing mod_bosh_socket

Go to state 'closing' if there are pending stanzas while closing the socket.
They will be delivered when clients sends next request.