[bal] Clean up mmap code.