I understand how you feel. This is a very gray area and is a situation where custom rules. Being gay is an area where custom is pretty much a blank. Getting kids to hurry to the next class is standard operating procedure and is an area that I had trouble with as a student. My wife would tell you that I still change clothes slowly. My point is that reminding student to hurry is not out of line.
Factoring in the gay thing is probably objectionable but not actionable. I am morally certain that she is probably "copping a peek", but she is not going outside her job as principal by doing shower check.Of course, the gym teacher should be doing that. I don't think that it would be a violation of the law as long as the principal keeps her hands to herself.