Check for missing undo files at startup, making the check somewhat more ...

...efficient.

This is also an incremental step in making an index pruner for #4481
Nit: ``undo data`` also fits better in here, but no need to add, if this is going to be merged soon.