memcg, kmem: fix build error when CONFIG_INET is disabled