Provide the runtime with the way to know if Kernel#gsub should be defined.
Define Kernel.gsub in 1.9 mode only when '-p' and '-n' is given.

This addresses JRUBY-7048.