Fix race between attach_task and cpuset_exit