Multiple Solutions to the Hartree‐Fock Problem. I. General Treatment of Two‐Electron Closed‐Shell Systems