[PATCH v2 1/6] server: Move shared memory initialization out of create_class.