Fix a few points where spawn would reject task state changes even when they were valid transitions