First, lets examine the linear analogue without the complication of circular motion. Imagine we two very long rods with the charges evenly distributed such that the combined charge of the two rods is neutral. Lets say the positively charged rod is accelerated in Born rigid manner. The number of charges on the positive rod remain constant, but the rod length contracts and so the charge density of the positive rod increases. The net charge of two rods become positive and test charge at rest with the stationary rod (assuming it is positive) will be repelled. Veritasium does a nice analysis of a very similar set up in this video.
the total charge across any fixed constant-time slice is both
conserved and Lorentz-invariant, so it must stay zero.
While the total number of charges is Lorentz invariant, the charge density is not. I have just demonstrated that in the linear case the relative charge density does change and the system does not remain neutral. Is there any particular reason you think things would be different in the circular case? The linear case is a reasonable approximation of a segment of a very large ring. Centrifugal force is proportional to $mv^2/r$, so for a given tangential velocity the centrifugal force can be made arbitrarily small by making r arbitrarily large. The change in direction per unit time ($\omega$) is also arbitrarily small for arbitrarily large r since $\omega = v/r$. In the limit as r goes to infinity, travelling on the perimeter of the ring becomes indistinguishable from travelling in a straight line. The same applies when we consider an infinitesimal portion of the ring.
Naively, I might expect the positive ring to get Lorentz-contracted
and therefore appear to increase its linear charge density
Your first instinct was correct and there is nothing naïve about length contraction. It is a solid prediction of relativity and if the radius is allowed to shrink as would happen naturally without any external forces holding the radius constant, the charge density does increase.
Why doesn't the positive ring Lorentz-contract and appear to gain
charge and repel the charge q?
Returning to the linear case, the positive rod length contracts. If we attached powerful rockets to either end of the rod whose job is maintain the coordinate length of the positive rod in the rest frame of the negative rod and in this particular contrived instance, there would be no increase in charge density. The rockets will have to exert enormous force to prevent the positive rod length contracting (this is essentially Bell's rocket paradox). Similarly a force would have to be applied to the rotating ring to prevent its radius shrinking. You cannot assume the radius remains constant without specifying any external force or mechanism to hold the radius of the rotating ring constant. While centrifugal force could provide such a balancing force, the amount of centrifugal force is not directly related to relativistic length contraction and it would have to be a very specific set up to get the centrifugal force to balance the contraction. As mentioned before, for a very large ring, the centrifugal force becomes negligible. If we ignore centrifugal force the ring would contract. Of course we cannot simply ignore centrifugal force so whether the ring contracts or expands, depends on the relationship between the tangential velocity and the radius.
While spacetime is non-Euclidean in a rotating reference frame, from the point of view of a non-rotating inertial observer at rest with the centre of the ring spacetime is Euclidean and the the relationship between circumference and radius remains $C = 2\pi r$ and if the circumference is shrinking so is the radius in the flat spacetime of the inertial observer.
In summary, the ring does length contract and the charge density does increase and the test particle is repelled unless external forces are artificially applied to keep the radius of the ring constant. Any answer claiming the charge density remains constant should specify exactly what external forces are applied to keep the ring radius constant.