Bugfixes:
* Do not adns_cancel in the middle of adns_forallqueries.
+ * cdb: When cdbwr update writerecord fails, try to recover the
+ situation to sanity so we don't corrupt the log later; if this
+ fails, mark the cdb broken.
* strlen returns size_t, not int; fixed up everywhere relevant.
Closes #393970. (Bug exists only where int and ssize_t differ.)
+ * Use correct errno value for error writing to new .main during compact.
+ * Do not coredump if fclose journal fails during compact.
Portability fixes:
* Remove unecessary assertion of val<=0xffffffffUL where uint32_t val;