Attempt to restore cgroups

If a task had cgroups, these should be restored.

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