make temporary namespace threadsafe