MacDonald, James, Sir, active 1809-1853, 2nd Baronet, MP