Use local test&set instead of global mutex to expand a node.