Removed any locking code from Model class. The model class is no longer thread-safe! Instead, we use a queued connection to fill the model from the worker thread.