Usually, when this happens in the animal kingdom, it results in stillbirth, but the slow metabolism of the sloth may have made it less risky to have a higher number of vertebrae.
In spina bifida occulta, the spinal cord and surrounding tissue don't protrude, nor is any of the tissue forced into the spaces in between the vertebrae.