barrier destroy must also wait for threads in other processes exiting barrier