Glow-spark switching by a dielectric wall in a pin-to-electrolyte discharge