Windows explorer preview locks file.
Explorer of Windows has Preview pane. It is nice but as a default, it locks the file in preview.
Which means, the file can not be modified, renamed, or saved.
To change the behavior, add a value to the Windows registry according to this instruction.