Thread-safe client and remove old State const&-based APIs.