Correctly handle link detach and session end.
Correctly handle link detach and session end.

It was possible for `Session.mux` to return before an associated link.
Due to an oversight during refactoring the detach logic did not account
for this and the link could deadlock attempting to send the response
Detach.

vcabbage/amqp