ctdb-tcp: Factor out function ctdb_tcp_start_outgoing()