Fix deadlock between STM and throwTo