Initializes a scoped pool with max_mem max_mem doesn't do anything at the moment
Use only if ScopedPool is the highest on stack.
See Implementation