Shared/database: ensured the ODBC error list is completely thread-safe.