Blocking queue thread safe