Bill Cosby has saved at least one of his New York City homes from foreclosure—after selling the historic townhouse less than two months after he put it on the market.