Change socket_connect() to return int.

This return type is more consistent with what other functions are
returning.

Signed-off-by: Thiago Farina <tfarina@chromium.org>