Fix concurrency comsumption in __len__