This is a little hacky, but I agree it's solving the problem.
To test, I locked the screen & went to the greeter and waited for 60 seconds. During that time, /var/lib/lightdm/.cache/upstart/indicator-sync.log grew by 264 lines.
In a second equivalent test, it grew by 235 lines.
In another equivalent test *after* applying this patch, it grew by 4 lines.
This is a little hacky, but I agree it's solving the problem.
To test, I locked the screen & went to the greeter and waited for 60 seconds. During that time, /var/lib/ lightdm/ .cache/ upstart/ indicator- sync.log grew by 264 lines.
In a second equivalent test, it grew by 235 lines.
In another equivalent test *after* applying this patch, it grew by 4 lines.