nvrm: move stale wait checking into the kernel