Fixed #951: Assert when number of threads is greater than hardware concurrency