### Godot version

4.1 dev

### System information

Win 10

### Issue description

Have a node and bunch of child nodes.
Some get _ready called, and some do not.

### Steps to reproduce

create a scene and bunch of child nodes with different sripts.

### Minimal reproduction project

n/a
ERR_FAIL_NULL_V(p_node, NodePath());
	if (this == p_node) {
		return NodePath(".");
	}
	HashSet<const Node *> visited;
	const Node *n = this;
	while (n) {
		visited.insert(n);
		n = n->data.parent;
	}
	const Node *common_parent = p_node;
	while (common_parent) {
		if (visited.has(common_parent)) {
			break;
		}
		common_parent = common_parent->data.parent;
	}
	ERR_FAIL_NULL_V(common_parent, NodePath()); 
	visited.clear();
	Vector<StringName> path;
	StringName up = String("..");
	if (p_use_unique_path) {
		n = p_node;