Update TreeView in GUI thread.