If multiple threads are creating and releasing the factory, these
accesses are racy and can result in callers of
DXCoreCreateAdapterFactory getting a null pointer or a pointer to
freed memory.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8949