Moved ID locks implementation to RBTree 

Previous hash-based implementation had collisions which lead to dead locks