Add threadsafing.
Finish MemoryBrokenProcessBackend-multithread