Tokyo stocks flat as chip shares bought, gains locked in