ARM: prevent multiple syscall restarts