Fix #37469. Shared memory was closed for forked childs, thus causing close an munmap twice for the same file id.