Remove now unnecessary mutexes.
Replace #ifndef PRODUCTION with #ifndef NDEBUG.
Memory pool API refactoring.