A lock has been added for each memory pool. It is used to protect the pool during allocations and releases. It is also used when pool info are dumped.