Make ThreadLocalPtr behave sanely around fork()