Oscar-winning screenwriter left failed Sony 'Barbie' movie because studio wanted 'girl-boss feminist twist'