[CIR] Fix speculative vtable emission check for inline virtual functions (#245845)
hasAnyUnusedVirtualInlineFunction looked up each inline virtual function
as a cir::GlobalOp, which never matches a function, so every class
appeared to have an unemitted inline virtual and
canSpeculativelyEmitVTable always returned false. As a result CIR never
emitted available_externally vtables at -O1 and above, preventing LLVM
from devirtualizing calls whose target is known after inlining a
constructor. Look the entry up as a cir::FuncOp, matching classic
codegen.