do not close mod_bosh_socket immediately if there are pending stanzas

go to 'closing' state and wait for next request form client
Merge pull request #284 from esl/adjust-bosh-suite-to-escalus-2.6

fix race condition while closing mod_bosh_socket