crypto: use pubring_dir() context manager systematically.

Hard-changing GNUPGHOME can do no good.
tests: some tests for dnf.crypto.