ipc: shm: fix 'ret' uninitialized warning