[ruby-core:118083] [Ruby master Bug#20502] Backport pthread_kill fix to Ruby 3.3