Fixed invalid type cast.
Check for RepoChangedNotifier.IsLocked before check if IsRunningGitProcess