Tie number of KD threads to global number_of_threads option