add LOCK to file_put_content