fix bogus deadlocks from interrupts and GCs