moved lock related functions to backend.utils
pep8