Wrap the DLL with a call with mutexes, maybe... kinda like a synchronized version of an unsynchronized object in Java. :-)