Bernie Sanders, in striking distance of an Iowa win, runs into the politics of gender at debate