https://bugs.winehq.org/show_bug.cgi?id=43533
--- Comment #10 from Vincent Povirk madewokherd@gmail.com --- This bug was fixed in upstream Mono by commit 565d626c.
I could cherry-pick that to Wine Mono 4.7, but there are other problems with KeePass so I'm not sure it's worth it.