fix the ThreadLocal test in open source builds