Fix a sharing spec for Kernel#public_method