[v6 PATCH 2/5] comctl32/listbox: Use a helper function to check the selection state of an item.