net: Fix build regression when INET_UDP_DIAG=y and IPV6=m