Prevent the rtree module from reading sqlite_stat1 data from the wrong database.
Changes to FTS to ensure that it does not access the database from within the xConnect method.
Fix an obscure bug causing sqlite3_close() to fail if there are virtual tables on the disconnect list when it is called.