Sir William Douglas, 4th Baronet — Member of Parliament