socket-util: Generalize tcp_open_*() to UDP, as inet_open_*().