Fix race condition in ThreadLocalSparkeyReader