Threadpool: maximum number of threads is now limited, due to some issues with CPU cores detection