ipc: shm: fix information leak to userland