Changed call convention for threads.

In order to avoid garbage collection in between Grace method returns and
"callmethod" gracelib function returns, Grace methods now have to pause
the GC before returning. It is left to the programmer to unpause the GC
as soon as possible after the return of the callmethod function.