GenericSpecializer: fix the function convention if specialization removes the self parameter of a method
When dropping the self metatype parameter of a method, it must become a "thin" function.
Fixes a crash when using performance annotations.
rdar://107202455