This is intended to enable a future change, where a file's SemIR will be
able to directly refer to insts from another file. In order to format
such references, we will need to access the `InstNamer` for the foreign
IR while formatting the local IR, so that we can keep the inst name
consistent across files.