This block of code is never executed if the $cgroup_path directory existed prior to line 12.  What if the $cgroup directory exists and not mounted to /tmpfs?  In this case, we'll be writing on the parent FS.

@mariash @ryantang