Account for condition_variable spurious wakeups
Account for condition_variable spurious wakeups

Switches to the correct usage of condition_variables.
  while(!condition) { cv.wait() }

Previously I was treating the condition_variable like it was itself a
true/false condition.

numenta/htmresearch-core,numenta/htmresearch-core,numenta/htmresearch-core,numenta/htmresearch-core