When it comes to the prevalence of public toilets, one analysis suggests the U.S. ranks 30th in the world, tied with Botswana. The obvious solution—just build more of them—doesn’t work.