Despite a weakening economy, Massachusetts continued to measure gains in the share of residents who reported having a steady source of healthcare in 2008, its second year of near-universal coverage, a new study has found. But the annual survey also raised red flags regarding the ability of residents to actually use that care, with growing numbers saying they could not afford needed treatments and many reporting shortages of primary care physicians.