It is not doable, it will be refreshed and disabled everytime the pet gets 'refreshed' :p
Often enough that repeatedly adding it back becomes impractical.
There is a way to lock the changes in place, but you need a real-time memory editor to do that. In the past I've added bit flags to my pets permanently, using Cheat Engine. Need to use pointers, but Elosnack helps with that.