fix missing SOCK_CLOEXEC in various functions that use sockets internally