extended lock to cover Notifications dictionary. Fixes #18