ipc,shm: introduce lockless functions to obtain the ipc object