Fixed deadlock condition in LayerList::update_model()