Annoying problem where index.lock is sometimes created