### 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
return data.parent;
}
Node *Node::find_parent(const String &p_pattern) const {
	ERR_THREAD_GUARD_V(nullptr);
	Node *p = data.parent;
	while (p) {
		if (p->data.name.operator String().match(p_pattern)) {
			return p;
		}
		p = p->data.parent;
	}
	return nullptr;
}
Window *Node::get_window() const {
	ERR_THREAD_GUARD_V(nullptr);
	Viewport *vp = get_viewport();
	if (vp) {
		return vp->get_base_window();
	}
	return nullptr;
}
Window *Node::get_last_exclusive_window() const {
	Window *w = get_window();
	while (w && w->get_exclusive_child()) {
		w = w->get_exclusive_child();
	}
	return w;
}
bool Node::is_ancestor_of(const Node *p_node) const {