[Bug 8978] Fix mdb_env_open2() failing when getting handle for NTDLL.dll