cgroup1_get_tree(): separate "get cgroup_root to use" into a separate helper