cgroup: fix cgroup_create() error handling path