Greta Gerwig’s feminist fantasy-comedy is taking the box office by storm, but the film’s success is also its politics, which go only so far as the Mattel corporation will allow: ‘A movie that ridiculed Barbie would have been disastrous for the brand’