struct ref_update: move "have_old" into "flags"