Concurrency fix in engine for setting history server