[Git][pacman/pacman][master] pacman-key: fix permission checks for non-root operations