Attach shared memory at child_init phase