Fix in tcp test to avoid unrelated problem with IOCP

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>