### 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.physics_process_internal;
}
void Node::set_process_mode(ProcessMode p_mode) {
	ERR_THREAD_GUARD
	if (data.process_mode == p_mode) {
		return;
	}
	if (!is_inside_tree()) {
		data.process_mode = p_mode;
		return;
	}
	bool prev_can_process = can_process();
	bool prev_enabled = _is_enabled();
	if (p_mode == PROCESS_MODE_INHERIT) {
		if (data.parent) {
			data.process_owner = data.parent->data.process_owner;
		} else {