All checks are ultimately preformed by looping over `static const AgentDiagnosticCheck checks[]` (an array of struct { char *desc, funptr * }) and calling the function suppiled by the pointer. The problem is that _most_ checks use `AgentDiagnosticsCheckDB()` but a handful do not; some offset from workdir rather than statedir. Could be done by reworking the cf-agent diagnostic-tests in general but I think it's outside the scope of the PR... and IIRC some TLC needs to be done in this area to provide checking with the new lmdb default.