fetch-pack: binary search when storing wanted-refs