Added the ClientThreadsRespecter sync primitive.

Thought it over and realized it is safe. Could you take a look at https://github.com/dkorolev/tailproduce/commit/c2623648a91879c38b805461ccc015c12d6eaf57 pls?