StateDB intermediate state reset when opening DB to force getting always last Checkpoint at last BatchNum, avoiding inconsistent intermediate state.