Fix IOException when running code coverage.

Running unit tests with code coverage would intermittently throw an
IOException:

System.IO.IOException: The process cannot access the file
'...OpenCover\coverage.xml'