move thread_id and idle_cnt under the macro RDO_MT