Thomas Maitland, Lord Dundrennan - Scottish lawyer and judge, and Solicitor General for Scotland (1792-1851)