Cherrypick the WAL error logging from the pre-3.7.5 line into a branch
for version 3.7.2.  Include the sqlite3_vsnprintf() interface.  This
checkin is intended for debugging and not for release.