See discussion on PR44792. This reverts commit 02ce9d8ef5a84bc884de4105eae5f8736ef67634. It also reverts the follow-up commits 8f46269f0 "[profile] Don't dump counters when forking and don't reset when calling exec** functions" 62c7d8402 "[profile] gcov_mutex must be static"