fix possible deadlock in git_backup.event.sh