shm_ipc: Fix handshake