Disassociate mem_addr_trace.h with Pin.
Simplify ins count, and use global lock.