Bugfix when locking adjacent files in the same directory

When multiple files in the same directory are locked, the unique_file is not really unique, namely, every lock creates the same unique_file. When the first lock gets released, it deletes also the unique_file, leaving all the other locks broken.