[NETNS][ICMP]: Build fix for NET_NS=n case (dev->nd_net is omitted).