cgroup: restructure locking and error handling in cgroup_mount()