https://bugs.winehq.org/show_bug.cgi?id=40744
--- Comment #13 from Richard Hughes richard@hughsie.com ---
I'd be happy to create a small reproducer if that helps.
That would be appreciated, thanks.
So, I did that, and it failed to reproduce the "bug" in wine. I spent about 2 hours looking at the debugging until I realized I was calling g_rw_lock_writer_lock() and then g_rw_lock_reader_unlock() -- which is something that seems to work "by accident" in glibc -- but not in Windows. After applying https://github.com/fwupd/fwupd/commit/0fe4914320e1c8f148860be784b67c746ee45d... it seems to work without either error message in wine. My apologies!
If you still want a reproducer (using w_lock, r_unlock) yell, although it's of course not wine's fault that I'm less than awesome at reviewing patches :)