Solves CoW friendly problem on MRI 2.2 and later.

WWW: https://github.com/ko1/nakayoshi_fork
