scheduler: fork() now also properly copies the stack of the task