Fix a deadlock when DNS lookups actually happen