[PDI-10503] Synchronize stream loggers

Synchronize stream logging threads with the thread they are called from.
Merge pull request #76 from askdzmitry/PDI-10503

[PDI-10503] Synchronize stream loggers