TS-3114: Refactor IpMap to make the RB tree a shared data structure