Add pthread condition to Lock class