Fix AVL tree traversal in cache_record_find and cache_host_is_known