Function getLockName

Create a namespaced lock name.