cgroup_add_task(), cgroup_set_mem_limit*(): More careful error detection