And? The Efrit is easily as smart as the person making the threat. He's going to know that it's a literal death wish for the person making the threat. In fact, he's going to know that it's far more likely that the wisher will be killed by the Sultan and the Efrit will be let off, than the other way around.
Yeah. That's unlikely. Further, the Sultan would be able to figure out that the wisher made the Efrit incapable of making a sound decision and it's even more likely in this case that the wisher is the only one to be killed.