Fix concurrency problems in index pool