Fix various problems in fts5 revealed by fault-injection tests.
Fix a problem with prefix queries and the AND operator.