http://bugs.winehq.org/show_bug.cgi?id=23472
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com --- Thanks for analysis, I submitted a patch that fixes it for me (supposedly disabled recurring DLL_PROCESS_DETACH works as it should).
http://www.winehq.org/pipermail/wine-patches/2013-December/128911.html