[PATCH openEuler-22.03-LTS-SP2 06/23] loop: fix order of cleaning up the queue and freeing the tagset