Core/Transports: Fixed crashes when instance with transports unloads

Closes #11056
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into teste2