pack-objects: fix error when same packfile is included and excluded