BROOKLYN — Thousands of New Yorkers are at risk of losing their homes years after the foreclosure crisis dominated headlines, and their cases are growing increasingly complex, experts say. Yet, funding for the 32 legal aid and nonprofits in the city that provide free help to homeowners needing loan modifications or other assistance may soon disappear.