net: add build-time checks for msg->msg_name size