shell/scripting: call `flushPendingConstraintsEvents` in `setLocation`
After location is set, one layout script will usually start adding widgets. It's required to emit formFactorChanged() to update plasmoid.formFactor bindings in QML side to avoid Layout issues.
See isHorizontal in plasma-desktop/containments/panel/contents/ui/main.qml