catalog: adjust threads array size to the number of set_threads