[libkwineffects] Cleanup effects handler global pointer on destruction
Test Plan:
Won't make a practical difference, anything that used before
would have crashed. Only now it's tidier.
Unit tests still pass
Reviewers: KWin
Subscribers: kwin
Tags: KWin
Differential Revision: https://phabricator.kde.org/D15171