drm/connector: Share with non-atomic drivers the function to get the single encoder