net/udp: Update udp_encap_needed static key to modern api