Previously, the undo files weren’t being flushed during a reindex because fKnown was set to true in FindBlockPos. That is the correct behaviour for block files as they aren’t being touched, but undo files are touched.
This changes the behaviour to always flush when switching to a new file (even for block files, though that isn’t really necessary).
Intended to fix #6923.