fix threading issue reading ChainStateBuilder chain