You stated
I actually agree with the law. Whether our social convention of covering up not holding hands while gay is illogical or not isn't really the issue. If he keeps going around naked holding hands while gay, it will eventually cause violence.
I know plenty of people who would not be amused, and some that would give him a kicking, if they were in the wrong mood.
And there are plenty of people I've seen in action that would do a lot worse.
This leads to the impression that you agree with laws banning things simply because other may get violent over them, in this case against him for being nude. If that is a legitimate reason to prohibit something, because someone else can't control their violence actions, then such reasoning could apply to anything. Should a woman be required to wear pants lest wearing shorts may result in someone losing control of themselves and attempting to rape her, or maybe cover her entire body? It sounds like the the same reasoning.
If people were to follow that advice, to acknowledge that they exist, and act accordingly in order to keep the peace, no progress would ever be made. Black people would still be slaves because of the social norm, women would still not be allowed to vote, own property, have a job, or have any existence or identity outside of her husband/father, we would still be burning or hanging witches and heretics, and so on. It is by pushing these limits against the social norms that changes occur and progress is made.
There may be other legitimate reasons to ban his actions, possibly of public health related concerns, particularly if any fluids or fecal residue are transferred as he sits places.