[7] Corrected problem in Producer/Consumer framework

Corrected problem in Producer/Consumer framework that caused
consumerProducing threads to never stop when work is done