As ISIS awaits one major assault in Mosul, Iraq, the self-declared caliphate has lost its control of a symbolic stronghold in north Syria.