Homes with a special feature that is no longer allowed under local building rules may give owners an edge when it’s time to sell.