use Gon.global if current thread doesn't have gon

Fixes #108