File#flock: ensure that flock blocks

this tests fails currently under JRuby 1.7.0, so it might be nice to have.