git-gc --auto: move threshold check to need_to_gc() function.