Fix deadlock cancelling rendering jobs