Added state.NotifyingLock type.
Added state.NotifyingLock type.

This simplifies some of the procedures around performing state updates
while also sending notifications. But I'm not sure I like this design,
so I may still revert to one of our prior state-tracking designs.

havoc-io/mutagen,havoc-io/mutagen