libpkgconf: pkg: add functionality for searching and scanning the preloaded package list Signed-off-by: Ariadne Conill <ariadne@ariadne.space>