BUILD: ebtree: make eb_is_empty() and eb_is_dup() take a const

For whatever absurd reason these ones do not take a const, resulting in
some haproxy functions being forced to confusingly use variables instead
of const arguments. Let's fix this and backport it to older versions.

(cherry picked from commit 43be340a0e4d9194ea06514d8d5cfb6964381dfc)
[wt: dependency for next patch]
Signed-off-by: Willy Tarreau <w@1wt.eu>
diff --git a/ebtree/ebtree.h b/ebtree/ebtree.h
index 39226e3..2e6ba03 100644
--- a/ebtree/ebtree.h
+++ b/ebtree/ebtree.h
@@ -520,13 +520,13 @@
 \**************************************/
 
 /* Return non-zero if the tree is empty, otherwise zero */
-static inline int eb_is_empty(struct eb_root *root)
+static inline int eb_is_empty(const struct eb_root *root)
 {
 	return !root->b[EB_LEFT];
 }
 
 /* Return non-zero if the node is a duplicate, otherwise zero */
-static inline int eb_is_dup(struct eb_node *node)
+static inline int eb_is_dup(const struct eb_node *node)
 {
 	return node->bit < 0;
 }