Applications like Discord are built using a technology that embed the Chromium browser engine, which is what is asking to unlock the keyring. I assume the other programs you have trouble with are also built with this technology, or are Chromium-based browsers like Brave, Vivaldi, Google Chrome, etc.
Take a look at this thread, it may help: