modified wait queue struct and added locks
Merge branch 'master' of https://github.com/knitHacker/w4118