[ruby-core:125450] [Ruby Feature#22060] Improve Pathname by migrating internal methods to pathname.c