Multifamily real estate investment trust AvalonBay Communities has sold a Los Angeles-area apartment complex it purchased in 2016 at a $10 million loss, even as the property garnered a score of bids and a market “scarcity premium” that executives have placed at the core of the company’s transaction strategy.