implements reindex locking