Fix some bugs when the OutputSchedulerThread is used with a writer.
It seems to work OK now and is much more efficient already than the
workshop version!

We need now to implement a way to track processors activity to count
how many parallels frames we should render