Correct auto-restart of syscalls via restartblock