Ruby: Fix mutable backtrace
Merge pull request #1846 from nviennot/rb_fix_mutable_backtrace

Ruby: Fix mutable backtrace