[openEuler-5.10 063/150] nios2: fix syscall restart checks