Refresh the tree only if it is not busy.

Although the tree may become busy after the check and before refresh, the check avoids the "Ignored reentrant call exception" in practice.

Fixed #64.