I'm not sure this would solve the problem from https://gitlab.winehq.org/wine/wine/-/merge_requests/944?commit_id=bc09f0812... as I'm not yet able to reproduce it, but I suspect it might help. In any case I don't think there's any good reason for this call to be synchronous with send_message.