fix RubyFile#rename when the source is a broken symlink

jruby/jruby#2153 became the first issue for me as a contributor. I tried to solve it pretty much the same way as it's been done elsewhere in RubyFile.