WIP: Made a lock-friendly REINDEX, the process state implementation.