reinstated SQLite threadlocals