lib/util Move set_socket_options() into common code.