tst_QHttpServerMultithreaded: fix C++17-ism
To capture *this using [=] is deprecated in C++20. The replacement,
[=,this], is C++20-only. So grab the nettle and list all captured
variables manually, which is the only formulation that doesn't warn in
either dialect.
To keep the capture list size managable, move the make_shared call out
to a line by itself. As a drive-by, also std::move(message).
Amends 1de0a09f59113433cda37906b7b28d5650d4fa02 (picked to 6.8).
Pick-to: 6.11 6.10 6.8
Change-Id: I49aee76b90753b048a6df1fbaf708a070847dea6
Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io>