The comment suggested by @TasoP - was on the right track i.e. windows anti virus is getting in the way. Btw- tried anti virus exclusion on folder but did not work.
My solution was to move (or clone etc.,) my code repo into WSL linux directory itself, instead of mounting it as windows folder.