Implement BorrowFrom<Arc<T>> for T

Closes #19937.