The Massachusetts economy gained jobs for the fourth consecutive month in March as the state unemployment rate fell to the lowest level in more than three years.