The Mortgage Bankers Association sold its 10-story headquarters building in Washington, D.C., for $41.3 million, well below the $79 million it paid in 2007.