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