Fix GC after-fork bug

closes #613