core: Add public function gpgme_get_ctx_flag.