fix #1226 cleanup index.lock