Morocco’s absolute ruler Mohammed VI turned Spain’s border into leverage over Madrid