Steps to reproduce:

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

(`-reindex` works)
maybe_load_error = ChainstateLoadingError::ERROR_GENERIC_BLOCKDB_OPEN_FAILED;
        }
        if (maybe_load_error.has_value()) {
            switch (maybe_load_error.value()) {
            case ChainstateLoadingError::ERROR_LOADING_BLOCK_DB:
                strLoadError = _("Error loading block database");
                break;
            case ChainstateLoadingError::ERROR_BAD_GENESIS_BLOCK:
                 I
                 (
                return InitError(_("Incorrect or no genesis block found. Wrong datadir for network?"));
            case ChainstateLoadingError::ERROR_PRUNED_NEEDS_REINDEX:
                strLoadError = _("You need to rebuild the database using -reindex to go back to unpruned mode.  This will redownload the entire blockchain");
                break;
            case ChainstateLoadingError::ERROR_LOAD_GENESIS_BLOCK_FAILED:
                strLoadError = _("Error initializing block database");
                break;
            case ChainstateLoadingError::ERROR_CHAINSTATE_UPGRADE_FAILED:
                strLoadError = _("Error upgrading chainstate database");
                break;
            case ChainstateLoadingError::ERROR_REPLAYBLOCKS_FAILED:
                strLoadError = _("Unable to replay blocks. You will need to rebuild the database using -reindex-chainstate.");
                break;
            case ChainstateLoadingError::ERROR_LOADCHAINTIP_FAILED:
                strLoadError = _("Error initializing block database");
                break;
            case ChainstateLoadingError::ERROR_GENERIC_BLOCKDB_OPEN_FAILED:
                strLoadError = _("Error opening block database");
                break;
            case ChainstateLoadingError::ERROR_BLOCKS_WITNESS_INSUFFICIENTLY_VALIDATED: