Add "has_sha1_pack()" function to query whether the object is available in a pack