Backport 1.8 3902

Backport #3902: `BUG: linalg: don't tell BLAS to use zero strides`.