Rodger of Earlsferry, the Right Hon Lord, Lord Advocate