solver: fix special case where a direct origin dependency without extras is requested by the project and the same dependency with extras is requested by another dependency