Add LOCK_EX for all file_put_contents