Gracefully cast from std::thread::hardware_concurrency