Avoid leaking memory on kernels with recalcitrant mmap() behavior.