#6256: Refresh tree after lock and unlock