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.