goaidentity: use proper main context

The previous commit uses the wrong main context, which ultimately
leads symptoms including crashes and 100% cpu usage.

This commit just tweaks the previous commit a little bit, to use
the proper context.