intel-agp: Move repeated sglist free into separate function