JRuby: Clean up unneeded java_import
CRuby: Use internal RUBY_VM_VALID_CONTROL_FRAME_P helper

It basically does the same thing, but its less error prune than a plain
comparison, as I can change it by mistake and possibly crash your Ruby
1.9.3 interpreter.