Steps to reproduce:

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

(`-reindex` works)
#if defined(HAVE_CONFIG_H)
#include <configbitcoin-config.h>
#endif
#include <init.h>
#include <addrman.h>
#include <banman.h>
#include <blockfilter.h>
#include <chain.h>
#include <chainparams.h>
#include <compatsanity.h>
#include <consensusamount.h>
#include <deploymentstatus.h>
#include <fs.h>
#include <hash.h>
#include <httprpc.h>
#include <httpserver.h>
#include <indexblockfilterindex.h>
#include <indexcoinstatsindex.h>
#include <indextxindex.h>
#include <initcommon.h>
#include <interfaceschain.h>
#include <interfacesinit.h>
#include <interfacesnode.h>
#include <mapport.h>
#include <net.h>
#include <net_permissions.h>