Heald, Thomas, active 1846-1868, Mayor of Wigan