- Fixed an error with potentially checking if a NULL lock is held
- Implemented condition variables
- Spacing stuff