Add api to attach task to current task cgroup