use navigator.hardwareConcurrency for sysconf(SC_NPROCESSORS_ONLN); fixes #2456