ipc, shm: make shmem attach/detach wait for mmap_sem killable