The hajj to Mecca in Saudi Arabia has in recent decades been plagued by deadly disasters, from stampedes to terror attacks.