ci.yml: use  sysctl -n hw.logicalcpu  instead of  nproc  on macos

The "macos (arm64)" runner on github does not have nproc.

/Users/runner/work/_temp/f44f0d9f-19eb-4a23-860e-26533d7efdfa.sh: line 10: nproc: command not found