Fix integration test cleanup race conditions

For two of the unstable integration tests that involve file handle deletes, prevent race conditions with the PreviewWorker