pkg tests: fix tests that accidentally install packages in place

(cherry picked from commit 68c43a3db91cdba584e08fffe2c605116c1456ff)
raco pkg update: don't claim conflict with package being updated

Merge to v6.1

(cherry picked from commit d2a8bfcfe6ee5ed8b1f5906c56ed79f21a217209)