gc: fix off-by-one error with gc.autoPackLimit