Added temp fix for the profiler_allocate/free locking issues
Added temp fix for the profiler_allocate/free locking issues

Need to look into more details other possible race conditions, etc with
the current quick fix

tdenniston/Halide,ronen/Halide,ronen/Halide,tdenniston/Halide,ronen/Halide,ronen/Halide,kgnk/Halide,kgnk/Halide,kgnk/Halide,tdenniston/Halide,kgnk/Halide,jiawen/Halide,kgnk/Halide,jiawen/Halide,kgnk/Halide,tdenniston/Halide,jiawen/Halide,jiawen/Halide,psuriana/Halide,tdenniston/Halide,jiawen/Halide,psuriana/Halide,ronen/Halide,jiawen/Halide,psuriana/Halide,psuriana/Halide,ronen/Halide,ronen/Halide,tdenniston/Halide,tdenniston/Halide,psuriana/Halide,kgnk/Halide,kgnk/Halide,psuriana/Halide,jiawen/Halide,ronen/Halide,psuriana/Halide,tdenniston/Halide