drm/syncobj: extract two helpers from drm_syncobj_create