I think the only 24 hour lounge at LAX is the USO, but that's restricted to military.
Here are the hours of operation for each terminal:
http://www.lawa.org/welcome_lax.aspx?id=5450
I believe they will kick everyone out after it closes so that the janitors can clean, but I don't know for sure.