James Ferguson, 1st Laird of Pitfour — Advocate lawyer