ipc/shm: properly return EIDRM in shm_lock()