Make get_sock_error inline.