sched: track process lifecycle

Signed-off-by: Levente Kurusa <levex@linux.com>