Revert "use barrier instead of condition variable for finished"

This reverts commit 16b92e75329808155e461bfcf9a589adbe305716.
pthread barriers are not implemented on Mac OS X, and I want compatibility
with that OS.
begin implementation of hardlinks
finish implementing hardlinks