cgroup: fix locking in cgroup_cfts_commit()