kbx: Change return type of search functions to gpg_error_t.