Associating NetworkManager with the user account

This block needs to be `@synchronized`, to avoid race conditions on the shared singletons.