Onion Flats, a Philadelphia-based architecture and development firm, canceled a planned 88-unit apartment complex in North Philadelphia in 2021 partly because of the surging cost of lumber.