[PATCH v3 2/3] selftests: cgroup: Minor code reorganizations