vppinfra: fix the issue that mheap_get_trace record wrong pointer