gc.sh: keep a backup copy of packed-refs in repack dir
When calling make_repack_dir, keep a backup copy of the original
packed-refs file in the repack subdirectory as packed-refs.orig.
While repacking is in progress, any incoming ref deletions will
modify the original packed-refs file, but incoming branch additions
and/or updates will not.
Creating a bundle header from that packed-refs file could then
produce a set of refs that never actually existed at any point
in time. We can avoid this by using a backup copy of the original
packed-refs file that's immune to ref deletions.
Signed-off-by: Kyle J. McKay <mackyle@gmail.com>