wined3d: Add dynamic locking support to CheckDeviceFormat.