Added locked access to treeview (closes issue #15)