More companies have sold and leased back their real estate in recent years as property values have grown.