[PATCH v4 05/11] comctl32/listbox: Use a helper function to check the selection state of an item