Bug 995599 - Add lock when building cartridge repository

* When building cartridge repository protect from an additional
  openshift mcollective being started
Merge pull request #3395 from jwhonce/bug/995599

Merged by openshift-bot