Tbh it doesn't look right: if something needs to access root store it is supposed to wait for the import to finish. So if loading CSP load accesses root store during importing root certs this should probably be understood first how that is supposed to work and have some other way to solve it. Is it Wine's CSP or some custom one? As if it really needs to access root store it is not a matter of just a deadlock properly, it needs to be initialized before. If you could possibly elaborate on details a bit on how exactly that fails...