Fix prof regressions.
Fix prof regressions.

Don't use atomic_add_uint64(), because it isn't available on 32-bit
platforms.

Fix forking support functions to manage all prof-related mutexes.

These regressions were introduced by
602c8e0971160e4b85b08b16cf8a2375aa24bc04 (Implement per thread heap
profiling.), which did not make it into any releases prior to these
fixes.

Snaipe/jemalloc,flyfeifan/jemalloc,garoose/jemalloc,glandium/jemalloc,wespelee/jemalloc,wfxiang08/jemalloc,ahmetmircik/jemalloc,dxq-git/jemalloc,kmiku7/jemalloc,cpeterso/jemalloc,leebaok/jemalloc-4.2.1-readcode,VRToxin/android_external_jemalloc,wfxiang08/jemalloc,dxq-git/jemalloc,yy-nm/jemalloc,CMRemix/android_external_jemalloc,shekkbuilder/jemalloc,Snaipe/jemalloc,flyfeifan/jemalloc,kmiku7/jemalloc,AndroidExternal/jemalloc,garoose/jemalloc,shekkbuilder/jemalloc,AndroidExternal/jemalloc,lilothar/jemalloc,tempbottle/jemalloc,ahmetmircik/jemalloc,AndroidExternal/jemalloc,Dmitry-Me/jemalloc,cpeterso/jemalloc,Dmitry-Me/jemalloc,wespelee/jemalloc,jemalloc/jemalloc-cmake,tempbottle/jemalloc,leebaok/jemalloc-4.2.1-readcode,geekboxzone/mmallow_external_jemalloc,geekboxzone/mmallow_external_jemalloc,flyfeifan/jemalloc,awreece/jemalloc,vashstorm/jemalloc,cpeterso/jemalloc,Snaipe/jemalloc,lilothar/jemalloc,yy-nm/jemalloc,glandium/jemalloc,vashstorm/jemalloc,glandium/jemalloc,kmiku7/jemalloc,dxq-git/jemalloc,TeamExodus/external_jemalloc,shekkbuilder/jemalloc,jemalloc/jemalloc-cmake,wfxiang08/jemalloc,flyfeifan/jemalloc,lvfeng1130/jemalloc,leebaok/jemalloc-4.2.1-readcode,TeamExodus/external_jemalloc,shekkbuilder/jemalloc,CMRemix/android_external_jemalloc,VRToxin/android_external_jemalloc,yy-nm/jemalloc,yy-nm/jemalloc,awreece/jemalloc,VRToxin/android_external_jemalloc,Dmitry-Me/jemalloc,TeamExodus/external_jemalloc,CMRemix/android_external_jemalloc,wfxiang08/jemalloc,awreece/jemalloc,ahmetmircik/jemalloc,wqfish/jemalloc,lilothar/jemalloc,awreece/jemalloc,TeamExodus/external_jemalloc,wqfish/jemalloc,wespelee/jemalloc,kmiku7/jemalloc,cpeterso/jemalloc,vashstorm/jemalloc,geekboxzone/mmallow_external_jemalloc,wqfish/jemalloc,vashstorm/jemalloc,8l/jemalloc,Dmitry-Me/jemalloc,lvfeng1130/jemalloc,geekboxzone/mmallow_external_jemalloc,tempbottle/jemalloc,lvfeng1130/jemalloc,8l/jemalloc,wqfish/jemalloc,tempbottle/jemalloc,lvfeng1130/jemalloc,wqfish/jemalloc,dxq-git/jemalloc,leebaok/jemalloc-4.2.1-readcode,garoose/jemalloc,ahmetmircik/jemalloc,glandium/jemalloc,8l/jemalloc,8l/jemalloc,CMRemix/android_external_jemalloc,lilothar/jemalloc,jemalloc/jemalloc-cmake,garoose/jemalloc,VRToxin/android_external_jemalloc,jemalloc/jemalloc-cmake,Snaipe/jemalloc,AndroidExternal/jemalloc,wespelee/jemalloc