imm32: Fix crash in DllMain when FreeLibrary is called from a thread which existed...