South Korea has stirred up an old dispute with Japan, a move that risks disrupting efforts to contain North Korea.