In the US, there are laws against this kind of thing, although they typically exempt nearly half of the population. Worse than the laws, though, are the social sanctions.
i assumed the half of the population who weren't allowed to take off their shirt would wear some kind of minimal sports covering. even an a-shirt or something similar would still expose one to a sufficient amount of vitamin D, perhaps with a few more minutes exposure.