Revert "Change net/socket.c to use socket_*() functions"
Since commit 7e844959, the socket connect code is blocking, because
calling socket_connect() without callback is blocking. This reverts the
commit.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>