Wrapper for shared memory and locking functionality across different PHP extensions.