[Microsoft.Build.Tasks] Fix a regression when replacing readonly files

We should not delete the destination file if it is readonly as that would
mean all readonly files would be treated as if they were not readonly.

Fixes a failing test.