After #14193 ClientModel::updateTimer can take some time, as such the GUI hangs, like #17112.
Fixes this by polling in a background thread and updating the GUI asynchronously.
This is a backport of Core PR17135 and Core PR17427
The second PR fixes a bug introduced by the first (ClientModel::mempoolSizeChanged() signal has unregistered parameter type size_t)