BBC boss quits over Boris Johnson loan