rbtree: add __rb_change_child() helper function