[PATCH 5.10 363/599] bareudp: use ipv6_mod_enabled to check if IPv6 enabled