Using Lock from pulp-common.