index-pack: Use fsync to ensure received pack data is on disk