(mmap): Fix setting of inheritance.