Every team in MLB is allowed to- and will- shelter 40 players on its roster, whatever their country.
The restriction against using 40-man players applies to all countries. Japan will not be able to use Yu Darvish and Shohei Ohtani in the Olympics and South Korea will not be able to use Hyun-Jin Ryu or Kwang-Hyun Kim, for example