Add lock for GeometryDbSvc and use the atomic_flag to replace the mutable m_logger in TextFileDBReader.