### Godot version

v4.1.rc2.official [46424488e]

### System information

win10 21H2,Vulkan API 1.2.0

### Issue description

```
E 0:00:00:0469   Node2D.gd:7 @ _ready(): Condition "f.is_null()" is true. Returning: nullptr
  <C++ 源文件>      core/io/file_access_zip.cpp:51 @ godot_open()
  <栈追踪>          Node2D.gd:7 @ _ready()

E 0:00:00:0471   Node2D.gd:7 @ _ready(): Condition "!zfile" is true. Returning: false
  <C++ 源文件>      core/io/file_access_zip.cpp:171 @ try_open_pack()
  <栈追踪>          Node2D.gd:7 @ _ready()

```

### Steps to reproduce

run mini project

### Minimal reproduction project

[test_path.zip](https://github.com/godotengine/godot/files/11928867/test_path.zip)

#ifdef MINIZIP_ENABLED
#include "file_access_zip.h"
#include "core/io/file_access.h"
ZipArchive *ZipArchive::instance = nullptr;
extern "C" {
struct ZipData {
	Ref<FileAccess> f;
};
static void *godot_open(voidpf opaque, const char *p_fname, int mode) {
	if (mode & ZLIB_FILEFUNC_MODE_WRITE) {
		return nullptr;
	}
	Ref<FileAccess> f = FileAccess::open(p_fname, FileAccess::READ);
	ERR_FAIL_COND_V(f.is_null(), nullptr);
	ZipData *zd = memnew(ZipData);
	zd->f = f;
	return zd;
}
static uLong godot_read(voidpf opaque, voidpf stream, void *buf, uLong size) {