small changes in ``sqrt_mod`` and ``_sqrt_mod_prime_power``