Blocks the thread until every operation in the ring has finished, for close of a file.
close
ring_wait_idle :: (scheduler: *Scheduler, engine: *Engine)