Potential in spin-density-functional theory of noncollinear magnetism determined by the many-electron ground state