Maarten Lankhorst : wined3d: Fix a deadlock that may occur during initialization.