cgroups: Add an API to attach a task to current task's cgroup