Use new KWindowSystem platform check API
Summary:
Reduces code duplication and we always opperate on cached value, that
is the platform is only checked once in application life cycle.
Reviewers: Plasma, hein
Subscribers: plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D2342