Make foreign key converter thread-safe.
Make model manager thread-safe.
Make SQLiteModelStore thread-safe.