fixed bug with lthread_poll(): thread wasn't get withdrawn from sleeping
rbtree