John Trayner, Lord Trayner — Scottish lawyer