adt_tree: change pathtree_add to return WERR instead of bool.