Sir Alexander Lockhart, 1st Baronet — politician