Add public function gpgme_set_pinentry_mode.