builder: Use cgroups if the system supports it.

A systemd-based system is required right now.