A new documentary reveals how the comedian overcame her insecurities to reach the top in a male-dominated industry