File#flock: add concurrency test

Add concurrency test for File#flock. Currently works on MRI, but not jruby