Bug 919380: Disable threadsafety assertions when --enable-profiling is set. r=smaug