The country may be caught in chaos, but old associations promise to hinder Islamic State's progress in Libya.