Use cpu_number() instead of cpuid() for getcpuid()

ZFS on Linux does #define getcpuid() smp_processor_id()

xnu's cpu_number() seems to be a closer analogue to Linux's
smp_processor_id() than xnu's cpuid().