- avoid race conditions in thread-local access