cgroup: Add task_under_cgroup_hierarchy cgroup inline function to headers