cgroup: reorder operations in cgroup_create()