Using Lock from pulp-common.

https://bugzilla.redhat.com/show_bug.cgi?id=1096965