Thomas Somerville, 1st Lord Somerville — Scottish judge