Add detailed error logging to WAL in an effort to track down an obscure
SQLITE_PROTOCOL problem.  This code is intended for debugging and not
for release.
Pull over all the latest trunk changes.
Changes which attempt to address an obscure SQLITE_PROTOCOL error.