IO write operations can cause fiber switch therefore we need to synchronize writing lines to prevent data corruption.