task/cgroup: Fix batch cpuset binding

Without this a batch script could be bound to a single CPU rather
than the full job allocation. This is a revision to commit
399cb897f71380870485996fbde78db21ff618f9
without which batch scripts has no binding to CPUs via hwloc