unpack-trees: convert clear_ce_flags* to avoid the_index