Add fallback implementation for squareplus when backend lacks native support (#23405)