[pacman-dev] [PATCH 1/2] pacman-key: refine permission and locking checks