server: Don't pass a thread id to send_hardware_message, determine it from the window.