DARWIN: Fix setpag syscall error detection