James Gordon McIntyre, Lord Sorn — Scottish law lord