Japanese government bond yields near three-decade highs are giving fresh prominence to a long-discussed risk for global investors: the prospect of the nation’s vast pool of overseas capital returning home.