put atPrompt behind lock.
Eliminates a race.