Added the ClientThreadsRespecter sync primitive.

```c++
if (--parent->ref_count_ == 0){
 // unlock the mutex
}
```
alternatively, fetch_sub() can be used instead of '--' if the latter option seems non-atomic (although it is)