mm_allinfo.c: hold mm semaphore while accessing heap