Try to fix file locks for tests on Windows