Add ledger.history.mismatch insight statistic
Make sure we update mTNByID when we replace the root
Improve parallelization of getRippleLines