validation: do not wipe utxo cache for stats/scans/snapshots
Since #28280, the cost of a non-wiping sync of the UTXO cache is only proportional to the number of dirty entries, rather than proportional to the size of the entire cache. Because of that, there is no reason to perform a wiping flush in case the contents of the cache is still useful.
Split the FlushStateMode::ALWAYS
mode into a FORCE_SYNC
(non-wiping) and a FORCE_FLUSH
(wiping), and then use the former in scantxoutset
, gettxoutsetinfo
, and in the currently-unused CreateUTXOSnapshot
.