Changes in the boundary-layer structure at the edge of the ultimate regime in vertical natural convection