Revert to old pthread locks