Improved Transformer setting 'ready'

Previously could deadlock if ready was set after input frame queues were
full.