Lock jgc's critical sections with jhc_rts_lock().