Global lock was removed from profiler.
(cherry picked from commit 54af193)