solib_global_lookup: Fetch arch from objfile, not target_gdbarch.