This provides an additional guarantee that IBD reached its target chainwork.
These sorts of sanity checks are crucial for debugging since IBD takes a long time to complete.
In the future, we may want a more robust mechanism for fetching nMinimumChainWork, but fetching it from the logs will do for now.
Depends on D3452