write_loose_object: don't bother trying to read an old object