TOKYO — Toshiba and Western Digital have resolved a dispute that was preventing the embattled Japanese electronics giant from selling its flash memory unit to raise...