Fix possible endless recursion bug

If a PUB session with workgroups doesn't end properly (crash) or gets
launched at the same time as a different session with the same workgroup
members, the workgroup collaborator copying code will endlessly recurse
and copy data back and forth between students.