Although formulaic, this documentary offers an essential look at the history of homosexuality and its classification as a mental illness