lang/ruby25: apply upstream patch to fix segfault
PR: 225470
Submitted by: Charlie Li <ml+freebsd@vishwin.info>
Obtained from: https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61523
Differential Revision: https://reviews.freebsd.org/D14073