xbps_transaction_init: small memleaks found by valgrind.
lib/package_find_obsoletes.c: avoid many heap allocs and simplify.
lib/package_remove.c: avoid many small heap allocs and simplify.
lib/package_remove.c: typo fix.
tests/xbps/libxbps/shell/remove_test.sh: use -d arg to see what's going on.
lib/package_config_files.c: avoid many small heap allocs and simplify.