/// <summary>
/// Makes current thread owner of the tree.
/// Normally only one thread can access the tree.
/// </summary>
internal void TakeThreadOwnerShip()
{
_ownerThread = Thread.CurrentThread.ManagedThreadId;
TreeUpdateTask.TakeThreadOwnership();
TreeLock.TakeThreadOwnership();
}