[POWERPC] Make syscall restart code more common