[PATCH 5.15 112/244] nios2: fix syscall restart checks