source-archive: Close in use files before removing them

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

source-archive: Close in use files before removing them