Steps to reproduce:

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

(`-reindex` works)
#include <net_processing.h>
#include <netbase.h>
#include <nodeblockstorage.h>
#include <nodecaches.h>
#include <nodechainstate.h>
#include <nodecontext.h>
#include <nodeminer.h>
#include <nodeui_interface.h>
#include <policyfeerate.h>
#include <policyfees.h>
#include <policypolicy.h>
#include <policysettings.h>
#include <protocol.h>
#include <rpcblockchain.h>
#include <rpcregister.h>
#include <rpcserver.h>
#include <rpcutil.h>
#include <scheduler.h>
#include <scriptsigcache.h>
#include <scriptstandard.h>
#include <shutdown.h>
#include <sync.h>
#include <timedata.h>
#include <torcontrol.h>
#include <txdb.h>
#include <txmempool.h>
#include <txorphanage.h>
#include <utilasmap.h>
#include <utilcheck.h>
#include <utilmoneystr.h>