First send a channel.close-ok, then release local resources
First send a channel.close-ok, then release local resources

This way if a channel with the same ID is opened concurrently,
the server will first see a channel.close-ok for it and release it.

This is the same idea as #276.

streadway/amqp,streadway/amqp