def lockfile(file): "flock a given file, then unflock it immediately" if _lockonly(file): flock(file, LOCK_UN) # Options