In rrd synchronous file creation use lock_file