Added AQLock. Lock hangs at 5th thread. Need to fix