Improve flexibility of mybb.get_threads