ipc/shm: fix crash if CONFIG_SHMEM is not set