I think an important distinction needs to be made here. Openly masturbating, gang rape, etc. are obviously not acceptable in the locker room.
The general homophobia isnt acceptable anywhere.
There was a time when guys had to hook up in all kinds of weird places because social stigma and the law were opposed to homosexuality and made it difficult to meet people of like mind.
Hopefully we are moving out of those times, though I am sure several would describe a very real struggle, both accepting their own sexuality and accepting yours.
Every naked guy isnt looking to hook up, or getting some weird fascination from being naked next to you. Nudity isnt always sexual. The fact we still argue about women breastfeeding in public is in ridiculous in the same vein.
Public baths, locker rooms, saunas, etc, have had their place in humanity since we have been human. If something is making you uncomfortable avoid it or deal with it.
Is it inappropriate that I wrote this while taking a dump?