Hidden ability pre-evo will still evolve into HA evo, in another words, what are you looking for in Kricketot is Run Away ability in order to evolve it into Technician, you can still use a. capsule on Kricketot
Same logic applies to first ability pre-evo evolving into first ability evo, so is second ability if the species and its evo have got second ability
Given how precious a. capsule is, wasting it on temp mon might not be worthwhile tho
Ability in evolution is set, unless pre-evo has only one ability and evo form has two abilities, then the ability can branch out, in kricketot's case it has only got one ability and one HA, therefore the regular ability one evolves into regular ability Kricketune, same goes to HA being HA Kricketune, will not interfere with each other