Moved lock module to pulp-common - shared by CLI commands and agent handlers.

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