Plummeting attendance and deferred maintenance have pushed aging houses of worship to a crisis point.