index-pack: Detect SHA-1 hash collisions to avoid replacing objects