lockfile.cxx: Avoid caching LogLog reference for the uncommon case of error.