_thread_add_messages: Remove unused variable.