Ugly fix for race condition where SOCKS5 is ready earlier than the tunnel