[DBAL-1058] [2.4] Fix database names introspection for SQL Server

Backport of #736 to 2.4 branch.