lib: replace deprecated n_q_count_threads with status returning version