Restructure OS::get_cpu_xxx functions a bit
Restructure OS::get_cpu_xxx functions a bit

In particular if sysconf fails, fall back to std::thread if
that is available instead of falling back to return 1 right away.

randombit/botan,webmaster128/botan,randombit/botan,webmaster128/botan,webmaster128/botan,randombit/botan,randombit/botan,webmaster128/botan,randombit/botan,webmaster128/botan