source-archive: Close in use files before removing them

Required for Windows.
Merge pull request #1059 from rleigh-dundee/release-win-dev50

source-archive: Close in use files before removing them (rebased)