Sir Thomas Hope, 1st Baronet — Scottish lawyer