[PATCH 5/6] share_pool: Fix rbtree searching bugs