Fix RepositoryAnalysisSuccessIT (#95042)
If all the reads before the final one happen via
`compareAndExchangeRegister` then the final one might find
`firstRegisterRead` to be set still, permitting it to fail. This commit
treats calls to `compareAndExchangeRegister` as reads too, avoiding this
problem.
Closes #94664