Using invisible fencing is one matter…shocking your dog as he runs thru an open door is quite another. For the shock collar to have any value at all, you need to give him a command like "stop", or "come" or SOMETHING that you have already taught him (something he really knows) and then if he doesn't do it, then you can use the shock as a correction.
Sounds like a big mess in the making to me...because if you slap the collar on him, figure he knows what he isn't supposed to do, then he bolts for the door, and you shock him...do you think he is then going to come running back to you? Most likely he will be really scared, and keep running. Shock collars are seriously dangerous in the hands of amatuer trainers.
I would suggest you invest time and money in a good trainer (I prefer positive reinforcement trainers, as opposed to punishment trainers), and train him not to bolt thru open doors...and then work really hard on modifying your garage and back gate so it is difficult for him to get thru them, in case he decides to try.
Remote shock collars (not Ins.Fen) are a quick fix "solution" that has the ability to scare and confuse your dog, and make your situation much worse. IMO they should ONLY be used by very experience trainers, and only in certain types of training, and only with certain dogs. IME most basenjis do not do well with these types of collars.