Function BlockingQueue.close

Closes producer admission and wakes all blocked consumers.

bool close();

Returns true exactly for the first open -> closed transition.