### Godot version

3fa8fad

### System information

Debian Linux x86

### Issue description

#79205 introduces a regression to the way rpc configs are inherited, causing this error:

```
ERROR: Unable to get the RPC configuration for the function "foo" at path: "/root/Node". This happens when the method is missing or not marked for RPCs in the local script.
```

even though the function exists both in the server and the client. If you `print(self.foo)`, it even tells you that it's rpc: `Node(client.gd)::foo (rpc)` 

Before #79205 `GdScriptCompiler::_populate_class_members` used `GDScriptCache::get_full_script` to access the base script. This causes the parent script to be compiled (if it is not compiled yet), which in turn initializes the `rpc_config` property with a copy of the base value in [gdscript.cpp::_init_rpc_methods_properties](https://github.com/godotengine/godot/blob/3fa8fad26b97a8af20e7996b7e17d8f23fc04b89/modules/gdscript/gdscript.cpp#L1398-L1412)

However, `GDScriptCache::get_shallow_script` does not compile and thus does not initialize the `rpc_config` of the base script, causing the rpc functions not being included in the rpc config.

### Steps to reproduce

Extend a gdscript with a `@rpc` function annotation and try to do a network call:

server.gd:
```gdscript
extends Node

func _ready():
	var peer := ENetMultiplayerPeer.new()
	peer.create_server(1337)
	multiplayer.multiplayer_peer = peer

@rpc("any_peer") func foo():
	print("Server")
```

parent.gd:
```gdscript
extends Node

@rpc func foo(): pass
```

client.gd:
```gdscript
extends "parent.gd"

func _ready():
	var peer := ENetMultiplayerPeer.new()
	peer.create_client("localhost", 1337)
	multiplayer.connected_to_server.connect(func (): self.foo.rpc_id(1))
	multiplayer.multiplayer_peer = peer
```


### Minimal reproduction project

[test.zip](https://github.com/godotengine/godot/files/12215814/test.zip)

CRASH_COND(!member_indices.has(p_member));
		return member_indices[p_member].data_type;
	}
	const HashMap<StringName, GDScriptFunction *> &get_member_functions() const { return member_functions; }
	const Ref<GDScriptNativeClass> &get_native() const { return native; }
	RBSet<GDScript *> get_dependencies();
	RBSet<GDScript *> get_inverted_dependencies();
	RBSet<GDScript *> get_must_clear_dependencies();
	virtual bool has_script_signal(const StringName &p_signal) const override;
	virtual void get_script_signal_list(List<MethodInfo> *r_signals) const override;
	bool is_tool() const override { return tool; }
	Ref<GDScript> get_base() const;
	const HashMap<StringName, MemberInfo> &debug_get_member_indices() const { return member_indices; }
	const HashMap<StringName, GDScriptFunction *> &debug_get_member_functions() const; 
	StringName debug_get_member_by_index(int p_idx) const;
	StringName debug_get_static_var_by_index(int p_idx) const;
	Variant _new(const Variant **p_args, int p_argcount, Callable::CallError &r_error);
	virtual bool can_instantiate() const override;
	virtual Ref<Script> get_base_script() const override;
	virtual StringName get_global_name() const override;
	virtual StringName get_instance_base_type() const override; 
	virtual ScriptInstance *instance_create(Object *p_this) override;
	virtual PlaceHolderScriptInstance *placeholder_instance_create(Object *p_this) override;
	virtual bool instance_has(const Object *p_this) const override;
	virtual bool has_source_code() const override;
	virtual String get_source_code() const override;
	virtual void set_source_code(const String &p_code) override;
	virtual void update_exports() override;
#ifdef TOOLS_ENABLED
	virtual Vector<DocData::ClassDoc> get_documentation() const override {