Fix flaky test in TransactionIT closing socket to terminate transaction.

The test will now allow some time for the socket closing to propagate
network stacks and actually have an effect. It is a speculative fix.
Merge pull request #3611 from martinfurmanski/2.2-transaction-it-closing-socket-should-terminate-transaction

Fix flaky test in TransactionIT closing socket to terminate transaction.