Replace index flow_ext_ref_idx_v2 with flow_ext_ref_idx_3 index if it exists.
Includes better detection so that dropping the index only runs if the index does exist.
This should fix problems in beta labs arising from truncating updatelog.
modifyExtensionField() relies on updatelog to avoid repeating schema changes,
and generally seems to expect changes to be idempotent.