Set slave subsystems only in containerizer tests and cleaned up the
code using cgroups::enabled().

Review: https://reviews.apache.org/r/21585