drm/radeon/kms: add a new gem_wait ioctl with read/write flags