Japan will scrutinize potential buyers of Toshiba's semiconductor business for possible national security issues.