The influence of non-equilibrium defects on the anodic dissolution of a metal into a solid electrolyte