(SERVER-150) flush jruby instances

this one.  I kind of hate both of them because they are testing implementation details.  This one also uses `with-redefs`, which I hate, but overall I think its probably better than the previous one.