Fix invalid lock in Service::UpdateSlaveNotifications.

Fixes #5354