socket-util: Report fd of -1 on error in inet_open_active().