[cxx-interop] Avoid side-effects in member lookup when conforming types to `CxxSequence`
This became an issue in rebranch: multiple interop tests started failing (e.g. `Interop/Cxx/foreign-reference/pod.swift`).
The problem is not specific to rebranch though.
rdar://102151836