get lockfile working with ruby+jruby