`flock` locks based on the file handle, instead of the process id. This brings the file locking on unix based systems closer to file locking on Windows.