For many Massachusetts families, homeownership is becoming increasingly difficult to maintain — not just because of rising housing costs, but…