drm/radeon/kms: fix potential segfault in r600_ioctl_wait_idle