Set the correct flag for close on exec for sockets