when people don't want to give away (for free or below market price) their share of GOOG nobody calls that NIMBYism. When people don't want to give away their share in a city (drastically increasing density/population does in many ways take away from existing residents without any just compensation) - that is suddenly becomes NIMBYism.
The issue can practically be solved simply - city is to be like a corporation with stock, and any new resident/development has to buy the stock on the secondary market. Density/population increase (i.e. zoning changes) is by issueing new stock to be distributed proportionally like dividends to existing shareholders(residents). That way NIMBYism would just disappear the same way like it doesn't exist when it comes to GOOG. That also would make gentrification into a buyout where people who create a city desirable to live in would materially benefit from it instead of being just kicked out being as poor as when they moved in.