Backport of "qmlglsink: fix crash when created/destroyed in quick succession" into 1.18
Backport of !777 (merged) "qmlglsink: fix crash when created/destroyed in quick succession".
Commits:
- 27ecd2c3 qmlglsink: fix crash when created/destroyed in quick succession