An elegant Manhattan townhouse owned by the director Spike Lee has been put on the market for $32 million.