drop direct use of stat syscalls in internal __map_file