(__opensock): Use SOCK_CLOEXEC if available.