Revert "try to fix jruby issue"

This reverts commit d8bf066c86bae75e04abdbb1cb4be8e585114cd9.
fix test on jruby
fix exclusive
reduce deadlock probability