Fixed hawkthread's stupid implementation of condition variables.