Revert "Merge pull request #2111 from jruby/add-testcases-to-detect-root-classloader"

This reverts commit ebc07b67c31445fcd323b22386051825245f87d3, reversing
changes made to 9707f39b801ca6d777de77a808f736706694e0bb.