s3: Add set_socket_options to cli_connect_sock()