PA adapter: Only mark a file as done when all threads have finished processing XML fragments