resolved a possible deadlock in mm_free with mm_malloc