BOSTON — Summer vacation is nearing an end for Massachusetts lawmakers who have a lengthy to-do list for the coming months.The Democratic-controlled Legislature could tackle Medicaid cost containment, criminal justice reform and immigration bills when they return from August recess.