Fix how strides is set on Py_buffer object when the array is C-contiguous

This is a possible fix for #5085.

A complete solution would probably convert the strides array from something containing -1's into the equivalent without them, but I don't know all the corner cases involved with that.
-1 has nothing to do with anything, but it isn't wrong as such, so OK :)