Protect concurrent access to gROOT->GetListOfFiles()

Use the gRootMutex to protect access to possible concurrent accesses
to gROOT->GetListOfFiles().