mysql_determine_majority_build_slave_architecture_id more robust
* when there are no logs, it would return empty and break the next sql syntactically
* give -1 instead, this should not match anything
mysql_join_install_target_providers_dependencies_with_versions() and mysql_join_dependencies_install_target_providers_with_versions() can now use pre-joined versions