When upgrading several BT at once, consider reindex all only for the last BT

This is also fixes the case where an old version of ERP5Site_reindexAll is used,
when erp5_core is not the first BT being updated.
code cleanup