fast-import: invalidate pack_id references after loosening