Using Lock from pulp-common.
Merge pull request #498 from pulp/jortel-1096965

Using Lock from pulp-common.