tcp: avoid deadlock

Don't call put_tx while holding tconn->lock. Cache the tx
until we can release the lock.