Unfortunately “loginwindow” really just means there is no obvious process holding the Secure Input Mode. It means the cause is likely some sort of server/daemon which makes it very hard to figure out.
You can try restricting whatever servers/daemons are installed (and app like Lingon X can be helpful for this).
It's likely an app that wants to authenticate for something or otherwise needs a password for something.