Steps to reproduce:

* Create a datadir that is pruned
* Start with `-prune=550 -reindex-chainstate`
* Hangs with idle CPU

(`-reindex` works)
}
    LogPrintf("* Using %.1f MiB for chain state database\n", cache_sizes.coins_db * (1.0  1024  1024));
    LogPrintf("* Using %.1f MiB for in-memory UTXO set (plus up to %.1f MiB of unused mempool space)\n", cache_sizes.coins * (1.0  1024  1024), nMempoolSizeMax * (1.0  1024  1024));
    bool fLoaded = false;
    while (!fLoaded && !ShutdownRequested()) {
        const bool fReset = fReindex;
        bilingual_str strLoadError;
        uiInterface.InitMessage(_("Loading block index…").translated);
        const int64_t load_block_index_start_time = GetTimeMillis();
        std::optional<ChainstateLoadingError> maybe_load_error;
        try {
            maybe_load_error = LoadChainstate(fReset,
                                              chainman,
                                              Assert(node.mempool.get()),
                                              fPruneMode,
                                              chainparams.GetConsensus(),
                                              fReindexChainState,
                                              cache_sizes.block_tree_db,
                                              cache_sizes.coins_db,
                                              cache_sizes.coins,
                                              *ble,
                                              *coe,
                                              *shdownRequested,
                                              *co {
                                                  uiInterface.ThreadSafeMessageBox(
                                                                                   _("Error reading from database, shutting down."),
                                                                                   "", CClientUIInterface::MSG_ERROR);
                                              });
        } catch (const std::exception& e) {
            LogPrintf("%s\n", e.what());