Joshua Mackenzie, Lord Mackenzie — Scottish lawyer (1774-1871)