It should be great if we could spy on `set()` instead of `createLock()`. To do this, I recommend to [stub](http://sinonjs.org/docs/#stubs) the `createLock()` method to return an object with a spy on `set()`, then assert `set()` was called once and was called with the proper arguments.