Add an assert_exec() helper to remove verbose copypasta.
Save interrupted syscalls on the event stack for future reference.

Note: this patch keeps around the previous task->last_syscall
machinery for cross-checking purposes.  Otherwise it's subsumed.