netns: build fix for net_alloc_generic