+1  A: 

The second browser window is not hanging on the sleep command. It's blocking because sessions are blocking (and hence it's trying to open the same session). You can close the current session if you don't need it anymore (and hence don't want it to block) with session_write_close...

ircmaxell
Although this did not solve the problem, I learned something new here so I awarded the answer. Thanks. If you're interested in looking at this more, please contact me - I would really like to solve this.
Allen Hamilton
It didn't solve the problem? You're positive the locking is in other areas? How did you check?
ircmaxell
A: 

Mysql has a function called GET_LOCK.

Wikeno