Just like David Cameron, Riyadh is committed both to destroying Islamic State and to toppling Assad. It would be foolish to alienate them now