ubusd: simplify/fix avl loop in ubusd_acl_check()