[Bug 22624] New: multithread app using GDI and directx may cause deadlock