c++: updated consumer-producer and added 15-threads section with conditional mutex