A recent thawing of ties between Tokyo and Seoul could help enhance economic security and keep Beijing in check.