IntermediateDataBuffer: avoid busy-loop when source has reached EOD but mediator hasn't
IntermediateDataBuffer: avoid busy-loop when source has reached EOD but mediator hasn't

GSGroup/stingraykit,GSGroup/stingraykit