Protect global list of functions from concurrent access

The list returned from TROOT::GetListOfFunctions needs to be protected
from concurrent access to allow use of TFormulas on different
threads.

Conflicts:
	hist/hist/src/TF1.cxx
	hist/hist/src/TFormula.cxx
Protect global list of TFormulaPrimitives

Conflicts:
	hist/hist/src/TFormulaPrimitive.cxx
Added missing locks when calling gCint

Added calls to the gCINTMutex lock when calling gCint methods. These
are needed to avoid problems while concurrently using TFormula.

Conflicts:
	core/meta/src/TDataType.cxx
Make TClass::fIsAMethod setting thread safe

Caching and initialization of TClass::fIsAMethod have been changed
to make them thread safe and for calls to the TMethodCall can happen
concurrently.
Call TROOT::GetGlobalFunction instead of GetListOfGlobalFunctions

Since the global function list needs to be locked to be thread safe,
the simplest way of avoiding having to take the locks outside of
TROOT is to call GetGlobalFunction instead.

Conflicts:
	core/base/src/TQObject.cxx
Lock access to gROOT->fGlobalFunctions

The list of global functions must be protected from simultaneous
writes/reads.

Conflicts:
	core/base/src/TROOT.cxx
	core/meta/src/TCint.cxx
white spaces

Conflicts:
	core/meta/src/TCint.cxx
	hist/hist/src/TF1.cxx
Use #if __cplusplus >= 201103L to mark C++11 code
Thread safety fixes for TCling

    -use thread_local for statics which are being used as return values
    -use C++11 initializers to allow static containers to be const
gCINTMutex -> gInterpreterMutex
Use correct type
Improve const correctness
Remove #if not C++11
Mark deserialized inline functions used so the DeclUnloader keeps them.

(cherry picked from commit b9cbfbee293d2fb4c8660a2812f90a16586ff2ed)
Remember failures from autoload directives: they are likely persistent.

(cherry picked from commit 3c1ea5574f1b8ff9a531f24eebc366f4ee92bc5f)
Make NetXNG.QueryReadVParams settable by $ROOT_XRD_QUERY_READV_PARAMS.
Fixes for standalone TMVA in ROOT 6
In TStreamerBase::InitStreaming don't search on checksum when we can't.

This is one of two fixes for ROOT-6765 (and possibly ROOT-6779)
In TFile::ReadStreamerInfo properly handle the case of large files

This is the second of two fixes for ROOT-6765 (and possibly ROOT-6779)
TNetXNGFile: Make sure to handle echoed responses to readv_ior_max and readv_iov_max