context: Add API to override rpm macro

This is needed by rpm-ostree, which exposes it to allow creating
stripped-down installs with _install_langs.