Improve speed of :vimgrep by using a global lock