For one thing, a trigger lock does not fully disable a firearm. It will take someone who knows what they are doing about 15 seconds to overcome the device.

But more to the point, if a pilot does not need a functional firearm outside of the cockpit, then either leave the pistol there, or else unload it and lock it in a hard case. Anyone who thinks that is too inconvenient is just plain lazy.
_________________________
The ultimate result of shielding men from the effects of folly is to fill the world with fools.
-- Herbert Spencer, English Philosopher (1820-1903)