Avoid a race condition when checking to see if an account is prime.