Mackenzie, John Ord, Writer to the Signet