kernel32: Fix some test failures on systems with reduced privilege.