It might surprise you to learn that until 1997, a man could go to jail for up to 21 years for having sex with another man in Australia.