China-based developer Oceanwide Holdings Co. Ltd. agreed to sell a partially built project in downtown San Francisco that would create the city's second-tallest building to another developer from China for $1 billion, a deal that would be the priciest in city history.