This is pretty much why I keep the phantom power off when my condenser mic isn't in use. Literally can't work unless I flip a physical switch.
Not trolling, serious question: What is the audio/mic equivalent of covering your webcam with a sticker?
unplugging it
I presume GP means the built-in mic that sits next to your built-in webcam.
One that I've seen is plugging something into the audio jack, and then breaking it off and taping over it. That way the computer will detect something is plugged in and turn off the mic. Of course this won't be possible once Apple, and then everyone else, gets rid of the audio jack from computers.
It would have to be an audio device that has that little "ring" of audio in. Sorry, not knowledgeable in this field, someone smarter will be able to clarify, but I've noticed that my headphones that don't have a mic capability have less little "separator" rings on the 3.5mm jack, whereas the ones that do have mic capability have more.
Also your solution seems... excessive...
Isn't that still software controlled? So, let's say a malware is able to gain privileged access to my Windows machine and can install anything, would he be able to override this default behavior of 'turning off the mic when something is plugged in', especially when the external voices are more audible than something coming from the 'plugged in' dummy audio-in cable?