Configurable locks name

Allow setting the name of the shared dict locks name. Quick and dirty hack.