Pergunta de entrevista da empresa Deep Instinct

What is the risk in handling a file without locking it for modification/swapping beforehand?