mm_allinfo.c: keep mm semaphore while accessing heap