Changes from 2.6.5 to 2.6.6: Fix to the thread barrier that occassionally suffered from spurious wakeups on MacOSX.