rustpkg: Test that different copies of the same package ID can exist in ...

r? @brson ...multiple workspaces

The test checks that rustpkg uses the first one, rather than complaining
about multiple matches.

Closes #7241