Implementation of AnyEvent::CondVar for node.js