fix bug in compatc_protocol.go, prevent memory leak

After a long time running on compatct protocol, I found that the memory still increase and never drop.
By using go tool pprof, I found that p.lastField grows and never decrease. So I realized that in function `ReadStructEnd` there should pop the last element to prevent memory leak.