Berlin's governing mayor secured his party's nomination for the September election, but a surprise challenger and recent controversies signal unease within his own ranks.