Make DNS resolver's UDP socket close-on-exec.