The story of the little-known prime minister in 1945 is a cautionary reminder that Japan's surrender of an unwinnable war was not a certainty.