Sir Archibald Acheson, 1st Baronet — Scottish official and lord of session