Make SQLiteModelStore thread-safe.
Make AttributeLookupCache thread safe.
Make models thread safe.