Replace direct cgroup access with task profiles

Cgroups should not be accessed directly. Replace direct access with
task profile usage to perform the operation via cgroup anstraction layer.

Bug: 170507876
Test: build pass
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ifdb61cbe500734fb5eaec121c11dfd0d328df100
1 file changed