Update PerThreadMemory.cc

assert on cleaning up for unreleased buffers