[FIX] added missing barrier for writers and readers