added missing locks around access to watchLogs.