Add a missing mutex around calls to clear the KeyInfo cache when closing
a database connection.
Add missing mutex calls around a call to sqlite3SchemaGet() within sqlite3_open().
Add extra tests to e_walckpt.test.
Fix harmless compiler warning.