improve git locking issue