objcache: disable the cache when its database is damaged
LMDB reports a damaged database with errors like MDB_CORRUPTED or
MDB_PAGE_NOTFOUND. The cache printed these without saying what to do
about them, and the writer thread failed again on every batch.
Disable the cache for the rest of the process instead, and print the
first such error with the directory to remove. Removal is left to the
user, as other processes may still have the database open.
MDB_BAD_TXN counts as one of these errors: LMDB discards an error from
reading a named database's root, and the next operation then only sees
the failed transaction.
Fixes #65089
Assisted-by: Claude Code (Opus 5.5, Fable 5.2)