The CEO job is hard enough to land once. HP’s incoming chief has done it twice