cgroups: add per-thread subsystem callbacks