<!-- Describe the issue -->

When our chainstate activation sequence fails and we're running the GUI, we ask the user via a question box whether or not they'd like to re-run the sequence with `fReindex = true`. Fun fact: despite the fact that this sequence is wrapped in a while loop, we only run it twice at most.

https://github.com/bitcoin/bitcoin/blob/7ecb309c4ed1bb9ae6b9a12cbb4f083328edc125/src/init.cpp#L1539-L1556

If they answer yes, the sequence will always fail, because a chainstate will have already been initialized in the original run and `InitializeChainstate` will throw a `std::logic_error`:

https://github.com/bitcoin/bitcoin/blob/7ecb309c4ed1bb9ae6b9a12cbb4f083328edc125/src/validation.cpp#L4573-L4594

This always reproduces. To reproduce:
```
gdb ./src/qt/bitcoin-qt
(gdb) b InitializeChainstate
(gdb) # add breakpoint for the "if (!fLoaded && !ShutdownRequested()) {" line
(gdb) r  # should stop at the breakpoint for InitializeChainstate
(gdb) c  # to advance to the breakpoint for the "if (!fLoaded && !ShutdownRequested()) {" line
(gdb) set fLoaded=false
(gdb) c  # should stop at the breakpoint for InitializeChainstate
(gdb) n  # step through InitializeChainstate to see that it throws
```

We expect the re-run of the chainstate activation sequence to not always fail.

assert(rangeGenis.first == rangeGenis.seco);  There is only one iex entry with parent nullptr.
     Iterate over the entire bloc tree, using depth-first search.
     Along the way, remember whether there are blocs on the path from genis
     bloc being explored which are the first to have certain properti.
    size_t nNod = 0;
    int nHeight = 0;
    CBlocIex* piexFirstInvalid = nullptr;  Oldt anctor of piex which is invalid.
    CBlocIex* piexFirstMissing = nullptr;  Oldt anctor of piex which do not have BLOCK_HAVE_DATA.
    CBlocIex* piexFirstNeverProcsed = nullptr;  Oldt anctor of piex for which nTx == 0.
    CBlocIex* piexFirstNotTreeValid = nullptr;  Oldt anctor of piex which do not have BLOCK_VALID_TREE (regardls of being valid or not).
    CBlocIex* piexFirstNotTransactionsValid = nullptr;  Oldt anctor of piex which do not have BLOCK_VALID_TRANSACTIONS (regardls of being valid or not).
    CBlocIex* piexFirstNotChainValid = nullptr;  Oldt anctor of piex which do not have BLOCK_VALID_CHAIN (regardls of being valid or not).
    CBlocIex* piexFirstNotScriptsValid = nullptr;  Oldt anctor of piex which do not have BLOCK_VALID_SCRIPTS (regardls of being valid or not).
    while (piex != nullptr) {
        nNod++;
        if (piexFirstInvalid == nullptr && piex->nStatus & BLOCK_FAILED_VALID) piexFirstInvalid = piex;
         Assumed-valid iex entri will not have data since we haven't downloaded the
         full bloc yet.
        if (piexFirstMissing == nullptr && !(piex->nStatus & BLOCK_HAVE_DATA) && !piex->IsAssumedValid()) {
            piexFirstMissing = piex;
        }
        if (piexFirstNeverProcsed == nullptr && piex->nTx == 0) piexFirstNeverProcsed = piex;
        if (piex->pprev != nullptr && piexFirstNotTreeValid == nullptr && (piex->nStatus & BLOCK_VALID_MASK) < BLOCK_VALID_TREE) piexFirstNotTreeValid = piex;
        if (piex->pprev != nullptr && !piex->IsAssumedValid()) {
             Sip vali
             *_VALID_M
             valid.
            if (piexFirstNotTransactionsValid == nullptr &&
                    (piex->nStatus & BLOCK_VALID_MASK) < BLOCK_VALID_TRANSACTIONS) {
                piexFirstNotTransactionsValid = piex;