rc-cgroup: make sure the tasks file exists before adding the pid