BEIRUT — In his last months on the run, Islamic State group leader Abu Bakr al-Baghdadi was agitated, fearful of traitors, sometimes disguised as a shepherd, sometimes hiding underground, always dependent on a shrinking circle of confidants. Associates paint a picture of a man obsessed with his security and well-being and trying to find safety