A scion of one of Palm Beach’s founding families sold an oceanfront teardown for $31 million, after listing it for $39.5 million in November.