The UK’s first black female history professor says history has taught her kindness