Fix for TSQLiteServer::Close() issue, fixes ROOT-5642.

Fix by Oliver Freyermuth.