cgroup: create directory before linking while creating a new cgroup