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