AS 150 arrives in LAX at 05:58 and SU 107 doesn't depart until 15:00.
sth. that would be worth mentioning in your original story, because this matters, as this explains why you had to deal with TSA.
This problem would have most likely not arisen if you would have stayed airside.