Make models thread-safe.