correction on the root handling

due to concurrent access, some removed nodes may still
remain successors of root, this commit correct it by cleaning the root
after removing a node