iv_avl: Add iv_avl_tree_index().

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>