The codeshare doesn't mean anything. The fact that the AC flight had a UA number on it doesn't mean anything in streamlining the process. While it would be convenient for you to remain airside there aren't that many locations where all *A members are located in the same terminal (there are around 20 airports in the world where *A carriers are almost all in one terminal according to wiki).