add `@inline` annotation to `Core.Compiler.specialize_method` (#50015)
Since the return type of `Core.Compiler.specialize_method` relies on
the boolean keyword argument `preexisting`, it is profitable to
constant propagate it to get better inferrability.