model: refactor the get_thread() selection