Fix race condition if PrologFlags=Alloc,NoHold is used.