drm/radeon: add sync helper function