Fix flaky test_tcp_listener_same_port using a hardcoded port (#1206)