memcg, kmem: use is_root_cache instead of hard code