I was horrified when I saw the pictures and felt real relief when the OP stated the vet had sorted it. But....
... in the original image there is no tension of the skin between the peaks of the bends.
I.e
If it had been muscles causing a kink of that extreme then the skin would follow lines of muscle tension like this.
The fact that overlaying skin is adhered to muscle tissue and in proportion to normal structure indicates that, as there is no distortion to muscle or skin structure or placement, the problem is skeletal.