tryPromoteNewEntryNode
Try to promote the provided node to the entry node
Return
True if the entry node is set to the provided node. False if expectOldLevel is not the same as the current entry node level. Even if the provided node's level is still higher than the current entry node level, the new entry node will not be set and false will be returned.
Parameters
level
should be larger than expectedOldLevel
expectOldLevel
is the old entry node level the caller expect to be, the actual graph level can be different due to concurrent modification