kwallet should not be used as root user, so just refuse doing anything if root is the target user. (cherry picked from commit 2126d9f1)