There are scenarios when opening a file with Office for desktop that the file is locked for a period of time after saving.
This happens because Cloud Drive Mapper uses WebDAV as its protocol base which leverages the WebClient service built into windows 7 and above. When working with a file that was opened with WebDAV it will open this file into a temporary space located "C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp\TfsStore\Tfs_DAV" this is not a configurable path.
When using Office for Desktop, it can lock the file for long periods of time as most applications do not know of the real location the file is being opened from and it can leave the file in a locked state. Due to this there was a parameter added to WebClient which Cloud Drive Mapper will attempt to set.
If Cloud Drive Mapper is installed via command-line or using the "Install" feature from the menu context it will alter this default setting from 1 (enable) to 0 (disable). However if CDM is in run only mode it may not have the appropriate permissions so this will need to be set manually.
This can be done via GPO:
<<< INSERT HERE HOW TO DO VIA GPO >>>
Alternatively you can head to the "HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters" in registry and manually edit "SupportLocking" and set to 0. This will then disable locking and Office Desktop will be able to safe and open the files safely and correctly.
Auto fix this with an ELEVATED cmd line :-
REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters" /v "SupportLocking" /t "Reg_Dword" /d "0" /f