safe allocator for buffer
FIX: lock mutex_ before broadcasting signal
Merge pull request #345 from reneme/fix_arbitrary

FIX: Race Condition When Sending a Signal in BlockingCounter (hopefully)