Fix for concurrency issues with claim/release of prep operations on files in tests.