Core/Thread: Fix race condition converting time values to local time

Replace thread-unsafe localtime() http://www.cplusplus.com/reference/ctime/localtime/ with thread-safe portable ACE_OS::localtime_r() .

Helgrind log:
 Possible data race during read of size 4 at 0x6F183C0 by thread #1
 Locks held: none
  at 0x14E72E3: World::InitDailyQuestResetTime() (World.cpp:2772)
  by 0x14E3A01: World::SetInitialWorldSettings() (World.cpp:1790)
  by 0x101122A: Master::Run() (Master.cpp:164)
  by 0x101740C: main (Main.cpp:142)

 This conflicts with a previous write of size 4 by thread #2
 Locks held: none
  at 0x6C2D3BA: __tzfile_compute (tzfile.c:797)
  by 0x6C2D036: __tz_convert (tzset.c:627)
  by 0x164146C: LogMessage::getTimeStr(long) (Appender.cpp:23)
  by 0x1641550: LogMessage::getTimeStr() (Appender.cpp:31)
  by 0x1641722: Appender::write(LogMessage&) (Appender.cpp:80)
  by 0x1633FCE: Logger::write(LogMessage&) (Logger.cpp:83)
  by 0x16433D8: LogOperation::call() (LogOperation.cpp:29)
  by 0x16428A4: LogWorker::svc() (LogWorker.cpp:45)
Core/Timer: Better handle system clock changes

Change IntervalTimer::Reset() behavior to handle system clock changes forward and backward.
This fixes IntervalTimer:.Passed() returning true till it catches up to the new time, triggering the event up to "std::numeric_limits<time_t>::max() / _interval" times.
Fixes https://github.com/TrinityCore/TrinityCore/issues/5816
Core/RBAC: Update RBACPermissions enum with 4.3.4 branch
DB/Update: Few updates

Fixes #10758
SQL: Update sql/base/auth_database.sql
Core/ArenaTeam: Add teamnames to logs.
DB/Cond: Error fix-up
Scripts/PitOfSaron: some changes

Closes #10740
Scripts/Halion: refixed Twilight Cutter
Scripts/Garfrost: fixed forge jump
Scripts/Murmur: Remove unused field

Remove unused class field.
Scripts/Commands: Retrieve Creature template in HandlePetCreateCommand from Creature itself

CreatureTemplate can be retrieved directly from the Creature itself instead of using ObjectMgr::GetCreatureTemplate(id) .
Merge pull request #10736 from jackpoz/localtime_race_condition

Core/Thread: Fix race condition converting time values to local time
Merge pull request #10737 from jackpoz/clock_fix

Core/Timer: Better handle system clock changes
Merge pull request #10779 from jackpoz/murmur_unused_field

Scripts/Murmur: Remove unused field
Merge pull request #10781 from jackpoz/create_pet_creaturetemplate

Scripts/Commands: Retrieve Creature template in HandlePetCreateCommand f...
Merge pull request #10776 from xjose93/ArenaTeamLogs

Core/ArenaTeam: Add teamnames to logs.
Core/Commands: Fixing some problems with .account email
Merge pull request #10782 from Ascathor/master

Core/Commands: Fixing some problems with .account email
DB/SAI: Strengthen the Ancients addition

Fixes #10778
Core: Fix non PCH build