INT-2940 Fix Race Condition in TCP Connection Test

Assertion that server side connection was established could
occur after the connection was established, but before it was
added to the collection.

Add a latch.