Reset avalon if we continue to be unable to send all the work items.
Lock qlock mutex during reset from read thread in avalon to prevent more work being sent till the reset is over.
Wait till buffer is cleared after sending idle tasks to avalon before returning from avalon_idle.