Kahlo’s haunting 1940 self-portrait, “El sueño (La cama),” had previously sold at Sotheby’s 45 years ago for $51,000.