cgroup: fix a race condition in manipulating tsk->cg_list