Kerr, Charles, Lord, active 1704-1722, Director of Chancery in Scotland