tests: Fix cleaning up at the end of the test
* tests/gpg/t-import.c (main): Unref key and release context.
This fixes leaks found with -fsanitize=address.