Revert "cgroup: fix exit() vs rmdir() race"

Fixes broken build