The courthouse building, which was built in 1845 and vacant since 2007, is a major component of the larger revitalization of Worcester’s historic Lincoln Square district.