screenshot-manager: Fix segfault
This should fix the segfault we see ever so often. There might be more races but this one was reproducible locally and went away by fixing the timer source.
I'll merge this rather soonish so we see if CI gets more stable with this.