Sir James Langham, 10th Baronet — barrister and politician