Text this: Stability of extra dimensions in O(d,d)-covariant string gas cosmology