Use atomic reference counting for GSource
If attached to a context already it would use a mutex instead but at least before that the reference counting is not thread-safe currently.
See !675 (closed), moved out of the bigger issue there to get this in first.