drm/nouveau: fix a race condition in nouveau_dma_wait()