Avoid trivial concurrency issues in stats archive

With a bit of luck. Everything is still file-based, so
if running tests that end at the very same moment on the very
same instance, something bad can happen both for .stats and .nfo.