DISPATCH-2289: postpone data stream free until after disconnect.

The TCP adaptor should not release any outstanding data stream
elements until after the connection disconnect event. Otherwise it is
possible proton is still holding a reference to the data stream.

This closes #1439

(cherry picked from commit f7fdaf12a1bcbaa660f6ebc10d066542a3a30fca)
1 file changed