when unmap notify is followed by a map, the old Unmanaged will get released and never be managed again. by checking if there is a pending release operation, we can safely re-manage the window again.
related bug: https://bugs.kde.org/show_bug.cgi?id=BUG: 413350