compat: backport net_ns_type_operations