[ruby-core:127532] [Ruby Bug#22555] Missing CC invalidation when changing visibility on Method object