Rework the de-allocation guard on the munmap implementation