gpg/sign: cleanup code for better reuse

Signed-off-by: Manuel Traut <manut@linutronix.de>
gpg: cleanup remove_sign code and use error codes

signature should only be removed if key is in keyring

Signed-off-by: Manuel Traut <manut@linutronix.de>