Added lock to fix parallelism
Merge branch 'master' of https://github.com/jeberst/ParallelBFSVersion2