[Runtime] Fix short-circuiting of shared cache conformance lookups.
[Runtime] Fix short-circuiting of shared cache conformance lookups.

We were skipping shared cache queries if the ObjC metadata or descriptor were outside the shared cache, but we need to skip only if they're both outside the shared cache. We also need to check foreign types even if the descriptor is outside the shared cache.

rdar://93931813

roambotics/swift,glessard/swift,apple/swift,JGiola/swift,apple/swift,roambotics/swift,JGiola/swift,benlangmuir/swift,apple/swift,glessard/swift,roambotics/swift,glessard/swift,glessard/swift,roambotics/swift,benlangmuir/swift,benlangmuir/swift,JGiola/swift,benlangmuir/swift,roambotics/swift,apple/swift,apple/swift,JGiola/swift,apple/swift,roambotics/swift,glessard/swift,JGiola/swift,benlangmuir/swift,glessard/swift,JGiola/swift,benlangmuir/swift