[boost] Problem with conditional variables in boost