Japan and China are racing to build a new type of ultrafast, levitating train, seeking to demonstrate their mastery over a technology with big export potential.