Prevent a deadlock if ThreadedResolver resolves a unicode hostname at module-import time.