Use a statement journal on DML statement affecting two or more database rows if the statement makes use of SQL functions that might abort.
Use a mutex to protect the PRAGMA temp_store_directory
and PRAGMA data_store_directory
statements.
Other bug and warning fixes.