Allow different types of locks for nodes and hash.