in the closet

in private; the homosexual overtones of the phrase only developed in the 1960s