Can a sociopath be a closeted gay person too?

Yes. Anyone can be closeted.