model: use get_mutex() and get_thread_operand() helpers