Fix pet spell cooldown being extended without successful cast

Closes #12560
DB/Misc: Perry Gatner event

Script for Perry Gatner.

This script may be updated when I sniff more but all data is from sniffs, I wont add texts without the emotes so thats why there will be updates which will just be texts and additional timed action lists to run as random scripts..
Core/NetworkIO: Prevent double closing the same socket
Core: Fix non pch build
Resolve shutdown crash/leak if MySQL server is not running

Fixes #12734
Merge pull request #12818 from MrSmite/pet_spell_cooldown

Fix pet spell cooldown
DB/Creature: Watcher Leesa'oh

Script turn in event for stealing back the mushrooms.
Kill potentially uninitialized variable warning
DB/Misc: More texts

add some missing texts from npcs, also set missing emotes for some existing texts.
Core/NetworkIO: Restore networking related scripting hooks

Closes #12607