symboldb_download_repo: Fix return value in download status
symboldb_download_repo: Re-acquire package ID under lock

This obtains the ID directly from the database instead of lookup it up
via the RPM header hash.  As a result, the case when a package is loaded
concurrently is optimized.