fix shared memory ipc so max msg size is honored correctly