fixes #4769
Merge pull request #4852 from dotCMS/issue-4769-file-keep-locked-after-edit-webdav

fixes #4769