drm: Unify and fix idr error handling