Attempt to restore cgroups

If a task had cgroups, these should be restored. If there were empty cgroups
that were children of these cgroups, these should also be restored.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>