better synchronization for client-profiler