[Bug 4166] deadlock in GlobalUnlock (heap corruption?)