Fix visited status creation race condition