Common library: fix std pool de-allocation with memory locking.