I agree with others and your initial assumption that withdrawing funds in the same year is fine. The student does not need to be enrolled.
Re: your concern about FAFSA/css accuracy issues if you transfer to a younger sibling, you could also leave the funds in the 529 until the younger sibling is a senior and change the beneficiary at that point.