Mark thread as GC-blocked when waiting on a queue.