in reply to flock, not unflocking

If you are running on Linux you might find the contents of the file /proc/locks useful. Here you can see all the locks all processed on which files. You'll probably find ls -i helpful as well to turn file names into inodes when looking at the output.