runtime: replace hw.ncpu with hw.logicalcpu for Mac OS X

Authored by ak3n on Apr 6 2016, 10:44 PM.