get_merge_bases(): always clean-up object flags