server: Fix use-after-free of handle entry.
obj->ops->close_handle can indirectly call shrink_handle_table, which will invalidate "entry". Therefore accessing entry->ptr is not valid, neither is comparing "entry" with table->entries, since table->entries might have been reallocated.
caught in action: https://gitlab.winehq.org/yshui/wine/-/jobs/175272#L3516