Resolved a thread-safety test issue with JRuby.
Resolved an issue with JRuby and break from an enumerable.