libubus: keep objects in an avl tree