Make Filelock work for jruby