Remove superflous locks

@ch3cooli Based on your comments I created this PR.

Does it fix your crashes? - I wasn't able to reproduce them.
This method is only called from CGitIgnoreList::FetchIgnoreFile which aquires a lock before running FetchIgnoreList. -> So I suppose it can be dropped.