Monkeypatch close_old_connections in tests.