Fix a bug where the eviction server thread could get stuck if a tree is closed in between runs.

refs #1391