A consortium led by Western Digital Corp (WDC.O) is close to an agreement to buy Toshiba Corp's $17.4 billion chip business, with the U.S. firm's CEO in Tokyo to finalize the long and contentious talks, a person familiar with the matter said. The consortium and Toshiba aim to announce a deal on Thursday when the board of the embattled Japanese conglomerate is due to meet, separate people familiar with the matter also said. A deal would mark an end to months of uncertainty for Toshiba, which is scrambling to sell its flash memory unit - the world's No. 2 producer of NAND chips - to cover billions in losses at its bankrupt U.S. nuclear business Westinghouse.