Sexual harassment accusations have scuttled an exhibition of the portraitist’s work. Museums are wrestling with the implications — not just for Mr. Close, but for centuries of artists.