Danny Boyle’s reasoning for the lack of female leads in his films shows we need more male allies