add condition var and mutex to backend_logger