socket: check for defined(MSG_NOSIGNAL).