Automatically close fds for inert resources
If the plasma window resource is inert, the associated get_icon handler won't be invoked. This results in leaked file descriptors.
With this change, the corresponding close() function call will be generated to avoid leaking file descriptors and potentially crashing the session due to kwin running out of fds.
BUG: 438097