ipc, shm: guard against non-existant vma in shmdt(2)