[PATCH 2/5] wined3d: Protect access to the OpenGL wined3d_allocator with a critical section.