rbtree: don't use temporary context to destroy rbtree