TestClient: busy-loop on socket creation