Gilbert Laurie (1729–1809), Lord Provost of Edinburgh (1766–1768 & 1772–1774)