lib/syscall: Pin the task stack in collect_syscall()