upstream commit 0604154e006e88e9e7f82d8ee5fd076bda206613
upstream revision: 3cce3790072249cbe51b96cea26bc78019c11fd0
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging