[ruby-core:118075] [Ruby master Bug#20427] Backport: Heap buffer overflow in `Array#sort!` when block modifies target array