Currently rename() retries MoveFileExW if it returns ERROR_ACCESS_DENIED.
MoveFileExW may also fail with ERROR_SHARING_VIOLATION when the file is opened by some other app.
This patch makes rename() aware of ERROR_SHARING_VIOLATION when moving the file, so that it does
not stop its attempts to move the file if this error is encountered.