Sir James Murray, Lord Philiphaugh — Lord Clerk Register of Scotland