TOKYO/SEOUL (Reuters) - Sony Corp has agreed to sell its nearly 50 percent stake in an LCD joint venture with Samsung Electronics to the South Korean company for $940 million, as it struggles to reduce huge losses at its TV business.