D3D11: added a DllMain function to force single threading to avoid threading errors.