Barriers now work when using several workers in a node, by assigning a private queue to each worker for receiving messages from CommThread.

Also added a new test and updated old tests to work with the new system (each test becomes a worker, and object references are no longer valid across barriers)