Fix mem.getInfo(MEM_FLAGS): mask out COPY_HOST_PTR