Changed to use $synch when in wait mode.  Also, clearing user iosb as
part of io_queue.