An appeal from a judgment of conviction does not stay the execution of the judgment in any case unless the trial or a reviewing court shall so order. The granting or refusal of such an order shall rest in the discretion of the court, except that a court shall not stay any duty to register as a sex offender pursuant to Section 290.